package main

import (
	_ "beego-demo/controllers/config"
	_ "beego-demo/models"
	_ "beego-demo/routers"
	"github.com/astaxie/beego/orm"
	beego "github.com/beego/beego/v2/server/web"
)

func main() {
	// 开启 orm 调试模式：开发过程中建议打开，release时需要关闭
	orm.Debug = true
	// 自动建表
	orm.RunSyncdb("default", false, true)
	beego.Run()
}
